-- GENERATED SPELL FOR [Syndicate Prowler] --


function spell0_2588(pUnit, Event) --@Disarm,n/a--
pUnit:FullCastSpellOnTarget(6713,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2588', 5316, 1)
end

function spell1_2588(pUnit, Event) --@Sinister Strike,n/a--
pUnit:FullCastSpellOnTarget(14873,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2588', 577, 1)
end

function Sorts_2588(pUnit, Event)
local choix_sorts_2588 = math.random(0, 1)
if choix_sorts_2588 == 0 then
pUnit:RegisterEvent('spell0_2588', 1, 1)
end
if choix_sorts_2588 == 1 then
pUnit:RegisterEvent('spell1_2588', 1, 1)
end
end

function mob2588_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2588', math.random(1500, 3000), 1)
end

function mob2588_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2588_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2588_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2588, 1, 'mob2588_Action')
RegisterUnitEvent(2588, 2, 'mob2588_Leave')
RegisterUnitEvent(2588, 3, 'mob2588_Kill')
RegisterUnitEvent(2588, 4, 'mob2588_Die')
